package com.itcodai.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author c-fanqj
 * @date 2023/3/27
 * @apiNote 角色实体类
 */
@Data
@Table(name = "tb_role")
public class Role /*implements Serializable*/ {

    //private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "role_name")
    private String roleName;

    @Column(name = "role_description")
    private String roleDescription;

    @Column(name = "created")
    private LocalDateTime created;

    @Column(name = "status")
    private Integer status;


}